package com.caomt.dubboconsumertest.aaa;

import com.caomt.dubbo.service.api.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component("annoAction")
public class AnnoAction {
    @DubboReference(interfaceClass = DemoService.class,
            version = "1.0.0",protocol = "dubbo"
            )
    private DemoService demoService1;

    public String sayHello(String world) {
        return demoService1.sayHello(world);
    }
}
